.class public Lcom/instagram/creation/video/f/ay;
.super Lcom/instagram/creation/video/f/as;
.source "VideoScrubberFragmentICS.java"


# instance fields
.field final synthetic b:Lcom/instagram/creation/video/f/ax;


# direct methods
.method public constructor <init>(Lcom/instagram/creation/video/f/ax;Lcom/instagram/creation/video/gl/l;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 162
    iput-object p1, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    .line 163
    invoke-direct {p0, p1, p2}, Lcom/instagram/creation/video/f/as;-><init>(Lcom/instagram/creation/video/f/ap;Lcom/instagram/creation/video/gl/l;)V

    .line 164
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ay;->a()Lcom/instagram/creation/video/h/e;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/h/e;->a(Z)V

    .line 165
    return-void
.end method


# virtual methods
.method public bridge synthetic b()V
    .locals 0

    .prologue
    .line 160
    invoke-super {p0}, Lcom/instagram/creation/video/f/as;->b()V

    return-void
.end method

.method public e()V
    .locals 2

    .prologue
    .line 170
    invoke-super {p0}, Lcom/instagram/creation/video/f/as;->e()V

    .line 171
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ay;->a()Lcom/instagram/creation/video/h/e;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/h/e;->a(Z)V

    .line 172
    return-void
.end method

.method protected h()Z
    .locals 4

    .prologue
    const/4 v0, 0x0

    const/4 v3, 0x0

    .line 175
    iget-object v1, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    new-instance v2, Landroid/media/MediaPlayer;

    invoke-direct {v2}, Landroid/media/MediaPlayer;-><init>()V

    invoke-static {v1, v2}, Lcom/instagram/creation/video/f/ax;->a(Lcom/instagram/creation/video/f/ax;Landroid/media/MediaPlayer;)Landroid/media/MediaPlayer;

    .line 177
    :try_start_0
    iget-object v1, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-static {v1}, Lcom/instagram/creation/video/f/ax;->a(Lcom/instagram/creation/video/f/ax;)Landroid/media/MediaPlayer;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    iget-object v2, v2, Lcom/instagram/creation/video/f/ax;->a:Lcom/instagram/pendingmedia/model/a;

    invoke-virtual {v2}, Lcom/instagram/pendingmedia/model/a;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setDataSource(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 183
    :try_start_1
    iget-object v1, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-static {v1}, Lcom/instagram/creation/video/f/ax;->a(Lcom/instagram/creation/video/f/ax;)Landroid/media/MediaPlayer;

    move-result-object v1

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->prepare()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 188
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ay;->a()Lcom/instagram/creation/video/h/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/video/h/e;->d()Landroid/graphics/SurfaceTexture;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-virtual {v0, v1}, Landroid/graphics/SurfaceTexture;->setOnFrameAvailableListener(Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;)V

    .line 190
    iget-object v0, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ax;->a(Lcom/instagram/creation/video/f/ax;)Landroid/media/MediaPlayer;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnSeekCompleteListener(Landroid/media/MediaPlayer$OnSeekCompleteListener;)V

    .line 191
    iget-object v0, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ax;->a(Lcom/instagram/creation/video/f/ax;)Landroid/media/MediaPlayer;

    move-result-object v0

    new-instance v1, Landroid/view/Surface;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ay;->a()Lcom/instagram/creation/video/h/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/creation/video/h/e;->d()Landroid/graphics/SurfaceTexture;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/view/Surface;-><init>(Landroid/graphics/SurfaceTexture;)V

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setSurface(Landroid/view/Surface;)V

    .line 192
    iget-object v0, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ax;->a(Lcom/instagram/creation/video/f/ax;)Landroid/media/MediaPlayer;

    move-result-object v0

    invoke-virtual {v0, v3, v3}, Landroid/media/MediaPlayer;->setVolume(FF)V

    .line 194
    const/4 v0, 0x1

    :goto_0
    return v0

    .line 184
    :catch_0
    move-exception v1

    goto :goto_0

    .line 178
    :catch_1
    move-exception v1

    goto :goto_0
.end method

.method protected i()V
    .locals 3

    .prologue
    .line 199
    iget-object v0, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-virtual {v0}, Lcom/instagram/creation/video/f/ax;->Z()Lcom/instagram/pendingmedia/model/c;

    move-result-object v0

    .line 200
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ay;->l()Lcom/instagram/creation/video/gl/l;

    move-result-object v1

    sget-object v2, Lcom/instagram/creation/video/gl/q;->b:Lcom/instagram/creation/video/gl/q;

    invoke-virtual {v1, v2}, Lcom/instagram/creation/video/gl/l;->a(Lcom/instagram/creation/video/gl/q;)V

    .line 201
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ay;->a()Lcom/instagram/creation/video/h/e;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-virtual {v2}, Lcom/instagram/creation/video/f/ax;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/c;->e()I

    move-result v0

    invoke-static {v2, v0}, Lcom/instagram/creation/video/e/q;->a(Landroid/content/Context;I)Lcom/instagram/creation/video/e/p;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/instagram/creation/video/h/e;->a(Lcom/instagram/creation/video/e/p;)V

    .line 203
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ay;->a()Lcom/instagram/creation/video/h/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    iget-object v1, v1, Lcom/instagram/creation/video/f/ax;->a:Lcom/instagram/pendingmedia/model/a;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/h/e;->b(Lcom/instagram/pendingmedia/model/a;)V

    .line 205
    iget-object v0, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    iget-object v1, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    iget-object v1, v1, Lcom/instagram/creation/video/f/ax;->a:Lcom/instagram/pendingmedia/model/a;

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/a;->h()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    iget-object v2, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    iget-object v2, v2, Lcom/instagram/creation/video/f/ax;->a:Lcom/instagram/pendingmedia/model/a;

    invoke-virtual {v2}, Lcom/instagram/pendingmedia/model/a;->f()I

    move-result v2

    add-int/2addr v1, v2

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/f/ax;->e(I)V

    .line 206
    return-void
.end method

.method protected j()V
    .locals 2

    .prologue
    .line 210
    iget-object v0, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ax;->a(Lcom/instagram/creation/video/f/ax;)Landroid/media/MediaPlayer;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 211
    iget-object v0, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ax;->a(Lcom/instagram/creation/video/f/ax;)Landroid/media/MediaPlayer;

    move-result-object v0

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->stop()V

    .line 212
    iget-object v0, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ax;->a(Lcom/instagram/creation/video/f/ax;)Landroid/media/MediaPlayer;

    move-result-object v0

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->release()V

    .line 213
    iget-object v0, p0, Lcom/instagram/creation/video/f/ay;->b:Lcom/instagram/creation/video/f/ax;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/instagram/creation/video/f/ax;->a(Lcom/instagram/creation/video/f/ax;Landroid/media/MediaPlayer;)Landroid/media/MediaPlayer;

    .line 215
    :cond_0
    return-void
.end method
